const deviceList = [
  {
    id: 1,
    name: '放射源',
    model: 'NT601',
    position: 'FSC_01',
    sn: '00000111',
    pub: 'smcrl/00000111/tx',
    sub: 'smcrl/00000111/rx',
    online: 1
  },
  {
    id: 2,
    name: '门',
    model: 'NT602',
    position: '',
    sn: '00000112',
    pub: 'smcrl/00000112/tx',
    sub: 'smcrl/00000112/rx',
    online: 1
  },
  {
    id: 3,
    name: '红外',
    model: 'NT603',
    position: '',
    sn: '00000113',
    pub: 'smcrl/00000113/tx',
    sub: 'smcrl/00000113/rx',
    online: 1
  },
  {
    id: 4,
    name: '轨道',
    model: 'NT604',
    position: '',
    sn: '00000114',
    pub: 'smcrl/00000114/tx',
    sub: 'smcrl/00000114/rx',
    online: 1,
    axis: [
      {
        id: 1,
        name: 'x轴(mm)',
        type: 1,
        start: 0,
        end: 100
      },
      {
        id: 2,
        name: 'y轴(mm)',
        type: 1,
        start: 0,
        end: 100
      },
      {
        id: 3,
        name: 'z轴(mm)',
        type: 1,
        start: 0,
        end: 100
      },
      {
        id: 4,
        name: 'r轴(mm)',
        type: 1,
        start: 0,
        end: 100
      }
    ]
  },
  {
    id: 5,
    name: '圆盘设备',
    model: 'NT605',
    position: '',
    sn: '00000115',
    pub: 'smcrl/00000115/tx',
    sub: 'smcrl/00000115/rx',
    online: 1,
    axis: [
      {
        id: 1,
        name: '轴1(°)',
        type: 1,
        start: 0,
        end: 100,
        options: [
          {
            value: 36,
            label: '位置1'
          },
          {
            value: 72,
            label: '位置2'
          },
          {
            value: 108,
            label: '位置3'
          }
        ]
      },
      {
        id: 2,
        name: '轴2(°)',
        type: 1,
        start: 0,
        end: 200,
        options: [
          {
            value: 36,
            label: '位置1'
          },
          {
            value: 72,
            label: '位置2'
          },
          {
            value: 108,
            label: '位置3'
          }
        ]
      }
    ]
  }
]

module.exports = [
  // get
  {
    url: '/vue-element-admin/device',
    type: 'get',
    response: config => {
      return {
        code: 20000,
        data: deviceList
      }
    }
  }
]
